#define _CRT_SECURE_NO_WARNINGS 1
#include"QuickSort.h"
void test()
{
	int a[] = { 4 ,21,4,1,4,56,4,2,78,43 ,654,86584,5,33,7574,674411,76 };
	InsertSort(a, sizeof(a) / sizeof(int));
	PrintArray(a, sizeof(a) / sizeof(int));
}
void ShellSortTest()
{
	int a[] = { 4 ,21,4,1,4,56,4,2,78,43 ,654,86584,5,33,7574,674411,76};
	ShellSort(a, sizeof(a) / sizeof(int));
	PrintArray(a, sizeof(a) / sizeof(int));

}

void QuickSortTest()
{
	int a[] = { 4 ,21,4,1,4,56,4,2,78,43 ,654,86584,5,33,7574,674411,76 };
	ShellSort(a, sizeof(a) / sizeof(int));

	PrintArray(a, sizeof(a) / sizeof(int));

	QuickSort(a,0, sizeof(a) / sizeof(int)-1);
	PrintArray(a, sizeof(a) / sizeof(int));


}

int main()
{
	//test();
	//ShellSortTest();
	QuickSortTest();
	return 0;
}